import { GROUP, ADDGROUP, UPDATEGROUP, DELGROUP, GROUPBYORG } from "./api";
import { METHOD, request } from "@/utils/request";

//分组列表
export function list(params) {
  return request(GROUP, METHOD.GET, params);
}

//增加分组
export function add(params) {
  return request(ADDGROUP, METHOD.POST, params);
}

//编辑分组
export function update(params) {
  return request(UPDATEGROUP, METHOD.POST, params);
}

//删除分组
export function del(params) {
  return request(DELGROUP, METHOD.POST, params);
}
//根据机构查询分组
export function findAll(params) {
  return request(GROUPBYORG, METHOD.GET, params);
}
